<?php

namespace teach\util\helper;

class ResponseHelper
{
    /**
     * 返回封装的json
     * @param $status
     * @param $desc
     * @param array $data
     * @return array
     */
    public static function buildJsonData($status, $desc, $data=[])
    {
        $jsonData = ['status'=>$status,'desc'=>$desc,'data'=>$data,'t'=>time()];
        return $jsonData;
    }
}

